<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>CBlog</title>
    <link type="text/css" style="sheet" rel="stylesheet" href="/style/css/layout.css"/>
    <link type="text/css" style="sheet" rel="stylesheet" href="/components/syntax/styles/shCore.css"/>
    <link type="text/css" style="sheet" rel="stylesheet" href="/components/syntax/styles/shThemeEclipse.css"/>
    <script type="text/javascript" src="/components/syntax/scripts/shCore.js"></script>
    <script type="text/javascript" src="/components/syntax/scripts/shBrushAll.js"></script>
    <script type="text/javascript" src="/components/editor/ckeditor.js"></script>
    <script type="text/javascript">
        SyntaxHighlighter.all();
    </script>
  </head>

  <body>
    <div class="header">
    </div>
    
    <div class="body">
        <div class="body_top">
            <div class="logo">this is logo</div>
            <div class="menu">this is menu</div>
        </div>
        <div class="body_middle">
            <div class="inner_body">
                <form id="articleForm" name="articleForm" action="/admin/control.do?action=createArticle" method="POST">
                    <p>title:<input type="text" name="title" size="50" value="" /></p>
                    <p>
                        <textarea id="editor" name="content"></textarea>
                        <script type="text/javascript">
                            CKEDITOR.replace("editor");
                        </script>
                    </p>
                    <p>
                                                        category:
                        <select id="categorys" name="categoryId">
                            <#list categorys as category>
                                <option value="${category.id}">${category.name}</option>
                            </#list>
                        </select>
                    </p>
                    <p>Post_Name:<input type="text" name="postName" size="50" value="" /></p>
                    <input type="submit" value="Submit" />
                </form>
            </div>
        </div>
        <div class="body_below"></div>
    </div>
    
    <#include "footer.ftl">
  </body>
</html>